import { axios } from '@/utils/request'

const api = {
  list: '/intelligent-match/cat-list',
  del: '/intelligent-match/cat-del',
  save: '/intelligent-match/cat-save',
  status: '/intelligent-match/cat-status',
  dragChange: '/intelligent-match/cat-change'
}

export default api

export function dragChange (parameter) {
  return axios({
    url: api.dragChange,
    method: 'get',
    params: parameter
  })
}
export function list (parameter) {
  return axios({
    url: api.list,
    method: 'get',
    params: parameter
  })
}

export function del (parameter) {
  return axios({
    url: api.del,
    method: 'get',
    params: parameter
  })
}

export function statusAll (parameter) {
  return axios({
    url: api.status,
    method: 'get',
    params: parameter
  })
}

export function save (parameter) {
  return axios({
    url: api.save,
    method: 'post',
    data: parameter
  })
}
